/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.risk.service.api;


import java.util.List;

import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import com.koron.common.bean.StaffBean;
import com.koron.risk.domain.LocalCheckListEntry;

public interface LocalCheckListService {
	
	MessageBean<?> saveDraft(List<LocalCheckListEntry> beanList,StaffBean user);
	
	MessageBean<?> submit(List<LocalCheckListEntry> beanList, StaffBean user,String title,String note,String path, String approvalCode);
	
	MessageBean<?> discard(List<String> idList, StaffBean user,String title, String note, String approvalCode);
	
	MessageBean<?> list(String table,String name,String corpCode,String businessTypeId,String checklistEntryTypeId,Integer state,Integer page,Integer pageSize);
	
	Integer count(String table,String businessTypeId,String name,String checklistEntryTypeId);
	
	MessageBean<?> details(String tableName,String itemTable,String id);
	
	MessageBean<?> importExcel(StaffBean user,String code,String corpCode, String checklistEntryTypeId,
							   String businessTypeId,String title,String note,MultipartFile file, String approvalCod);
	
	MessageBean<?> getDraftList(StaffBean user,String corpCode);
	
	MessageBean<?> getHistoryList(String code);
	
	MessageBean<?> getProcessData(String ids);
	
	MessageBean<?> deleteDraft(String id);
	
	MessageBean<?> detailsByCode(String code);

	List<LocalCheckListEntry> exportList(StaffBean user, String corpCode, String name, String businessTypeId, String checklistEntryTypeId, Integer state);

}
